package com.elephant.core.utils.sqlit;

import java.sql.Connection;

/**
 * @author hai
 * @description
 * @date 16:45 2018/9/29
 */
public class ConnectionPoolTest {

    private static final String Class_Name = "org.sqlite.JDBC";
    private static final String DB_URL = "jdbc:sqlite:D:\\xiaozhan\\dictionary.db";


    public static void main(String[] args) throws Exception {
        /*ConnectionPool connPool = new ConnectionPool("oracle.jdbc.driver.OracleDriver",
                "jdbc:oracle:thin:@127.0.0.1:1521:ORCL","scott","tiger");*/

        ConnectionPool connPool = new ConnectionPool(Class_Name,
                DB_URL,"scott","tiger");
        connPool.createPool();
        Connection conn = connPool.getConnection();
        connPool.closeConnectionPool();
        connPool.setTestTable("EMP");
    }

}
